import axios from './interceptor'
// 获取message All
const getMessage = (
  page: string | number,
  message: string,
  email: string,
  username: string
) => {
  return axios.get(
    `/message?page=${page}&limit=5&message=${message}&email=${email}&username=${username}`
  )
}
// 删除message

const delMessage = (ids: string[]) => {
  return axios.post('/message/del', {
    ids,
  })
}
export { getMessage, delMessage }
